import React from 'react';
import logo from './logo.svg';
import './App.css';

function App() {
  return (
    <div className="App">
      <h1> ipfs api  演示</h1>
        <input ref="ipfs" style={{width:200,height:50}}/>
        <button onClick={()=>{
            console.log("将数据提交到ipfs");
            let content=this.refs.ipfs.value;
            console.log(content);

        }}>提交到ipfs</button>
    </div>
  );
}

export default App;
